<!--
 $ @Author: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @Date: 2022-06-07 19:31:34
 $ @LastEditors: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @LastEditTime: 2022-06-07 19:32:34
 $ @FilePath: \st-html.github.io\src\aaa008\a039css.html
 $ @Description: 1111
 $ @
 $ @Copyright (c) 2022 by liujiajun 45444154+wo1261931780@users.noreply.github.com, All Rights Reserved.
 -->
<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible"
              content="IE=edge">
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            p {
                color: red;
            }

            .democlass {
                color: pink;
                font-size: 20px;
            }

            .testselect {
                color: blue;
                background-color: grey;
                font-size: 50px;
            }
        </style>
    </head>

    <body>
        <p>我是标签</p>
        <p>测试颜色变化</p>
        <div>标签选择器的特点是，只要选中，所有的颜色都会生效</div>
        <hr>
        <div class="democlass">我是类选择器</div>
        <hr>
        <div class="democlass testselect">我是有两个属性的类选择器</div>
        <!-- 类选择器可以多个，只要用空格间隔就可以 -->
        <hr>


    </body>

</html>